package cn.gok.cglibProxy;

/**
 * @author: chen fan
 * @since: 2022/11/9 14:48
 * @description:
 */
public class Test {
    public static void main(String[] args) {
        NoticeServiceImpl noticeService = new NoticeServiceImpl();

        MyCglibProxy myCglibProxy = new MyCglibProxy(noticeService);
        //生成NoticeServiceImpl代理对象
        noticeService = (NoticeServiceImpl) myCglibProxy.getCglibProxyInstance();


        noticeService.addNotice();
    }
}
